From: Jan D. Date: Thu, 20 Jan 2011 06:43:04 +0000 (+0100) Subject: * src/unexmacosx.c: Add comment about include order. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~5131 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=0c255eb6e6251559f820531437f11158e51ab017;p=emacs.git * src/unexmacosx.c: Add comment about include order. --- diff --git a/src/ChangeLog b/src/ChangeLog index c8c364ad0e6..a618e275b02 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-01-20 Jan Djärv + + * unexmacosx.c: Add comment about include order. + 2011-01-20 Glenn Morris * minibuf.c (syms_of_minibuf) : diff --git a/src/unexmacosx.c b/src/unexmacosx.c index d3cf74eb33c..28e04979a4c 100644 --- a/src/unexmacosx.c +++ b/src/unexmacosx.c @@ -86,15 +86,20 @@ along with GNU Emacs. If not, see . */ be changed accordingly. */ -#include +/* config.h #define:s malloc/realloc/free and then includes stdlib.h. + We want the undefined versions, but if config.h includes stdlib.h + with the #define:s in place, the prototypes will be wrong and we get + warnings. To prevent that, include stdlib.h before config.h. */ + #include -#include -#include -#include #include #undef malloc #undef realloc #undef free +#include +#include +#include +#include #include #include #include